import {Vec3} from 'cc';
import {BulletType} from "db://assets/Scripts/MVC/Bullet/BulletType";

/**
 * 子弹
 */
export class BulletUiState {
    /**
     * 子弹类型
     */
    public type: BulletType = BulletType.M;

    /**
     * 初始位置
     */
    public originPosition: Vec3 = new Vec3();
    /**
     * 当前位置
     */
    public currentPosition: Vec3 = new Vec3();
    /**
     * 目标位置
     */
    public targetPosition: Vec3 = new Vec3();

    /**
     * 方向
     */
    public direction: Vec3 = new Vec3(0, 0, -1);

    /**
     * 3个方向上的移动速度
     */
    public speed: Vec3 = new Vec3(20, 20, 20);

    /**
     * 超出范围
     */
    public outRange = -10;
}